package com.cn.wanxi.service.impl;

import com.cn.wanxi.dao.CuisineDao;
import com.cn.wanxi.dao.impl.CuisineImpl;
import com.cn.wanxi.model.CuisineModel;
import com.cn.wanxi.model.ResultModel;
import com.cn.wanxi.service.CuisineService;

public class CuisineServiceImpl implements CuisineService {
    private CuisineDao cuisineDao = new CuisineImpl();

    @Override
    public ResultModel add(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel update(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel delete(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel findById(CuisineModel cuisineModel) {
        return null;
    }

    @Override
    public ResultModel findAll(CuisineModel cuisineModel) {
        return ResultModel.getResult(cuisineDao.getCount(cuisineModel), cuisineDao.findAll(cuisineModel));
    }

    @Override
    public ResultModel getCount(CuisineModel cuisineModel) {
        return null;
    }
}
